<template>
  <div class="content">
        <div class="content-text">
            客户编码：{{data.coding}}
        </div>
         <div class="content-text">
            客户名称：{{data.name}}
        </div>
                <div class="content-text">
            省份：{{data.province}}
        </div>
                <div class="content-text">
            城市：{{data.city}}
        </div>
                <div class="content-text">
            县区：{{data.area}}
        </div>
                <div class="content-text">
            渠道级别：{{data.level}}
        </div>
                <div class="content-text" >
            商业形态大类：{{data.commerceType}}
        </div>
                <div class="content-text">
            客户性质：{{data.nature}}
        </div>
        <div class="content-text">
            状态：{{data.status}}
        </div>
  </div>
</template>

<script>
export default {
   data(){
       return{
           data:{
           },
           id:''
       }
   },
   mounted(){
       this.getdata(this.$route.params.id)
   },
   methods:{
     getdata(id){
        let data = this.$API.clientM.customerInfo.basic.post({id})
        data.then(res=>{
        if(res.code=="0"){
            this.data = res.data
            console.log(this.data)
        }
        })

     },
   }
}
</script>

<style scoped>
.content{
  /* width:calc( 100% - 60rem); */
  padding:0 1.6rem;
  /* display: flex; */
  /* height: 100vh; */
}

.content-text{
margin-top: 2rem;
font-size: 1.3rem;
font-family: Source Han Sans SC-Regular, Source Han Sans SC;
font-weight: 400;
color: var(--el-color-text-6);
line-height: 1.8rem;
}
</style>